<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core">
 
<head>
<link rel="stylesheet" type="text/css" href="../style/main.css" />
</head>
 
<h:body styleClass="body">
    <center>
        <h:outputText value="Login Page" styleClass="header"></h:outputText>
    </center>
    <h:form>
        <h:panelGrid columns="2">
            <h:outputText value="Username :"></h:outputText>
            <h:inputText id="username" value="#{loginBean.entered_username}"
                required="true" requiredMessage="Please Enter Username!"></h:inputText>
 
            <h:outputText value="Password :"></h:outputText>
            <h:inputSecret id="password" value="#{loginBean.entered_password}"
                required="true" requiredMessage="Please Enter Password!"></h:inputSecret>
 
            <h:commandButton value="  Enter  " 
                action="#{loginBean.loginAction}"/>
        </h:panelGrid>
    </h:form>
    <h:form>
            <h:commandButton value="  Register for Account  " 
                action="#{loginBean.registerPage}"/>
    </h:form>
</h:body>
 
</html>